<!DOCTYPE html>
<html>
<head>
	<title>123</title>
</head>
<body>
<p>{{ test }}</p>
<button>bbb</button>
<script type="text/javascript" src="http://apps.bdimg.com/libs/jquery/1.8.0/jquery.min.js"></script>
<script type="text/javascript">
	$('button').click(function() {
		$.ajax({
			url:"/",
			type:"POST",
			data:{num:1},
			success:function(resp) {
				$('p').html(resp.data.num)
			},
			error:function(resp) {
				console.log(resp)
			}
		})
	})
</script>
</body>
</html>